package A1_4;

public class Product {
    private String title;
    private double weight;
    private String description;
    private double pricePerUnit;

    public Product(String title, double weight, String description, double pricePerUnit) {
        this.title = title;
        this.weight = weight;
        this.description = description;
        this.pricePerUnit = pricePerUnit;
    }

    public String getTitle() {
        return title;
    }

    public double getWeight() {
        return weight;
    }

    public String getDescription() {
        return description;
    }

    public double getPriceForQuantity(int quantity) {
        return quantity * pricePerUnit; // 假设单价不变，不考虑折扣
    }
}
